package DesignPatern.A16_观察者模式.QSB.A02_抽象模式;

import java.util.Vector;

/**
 * @Author: Du
 * @Date: 2021/8/2 12:34
 *
 * 被观察者
 */
public abstract class Subject
{
    private Vector<Observer> observers = new Vector<>();
    
    public void addObserver(Observer observer)
    {
    
    }
    
    public void deleteObserver(Observer observer)
    {
    
    }
    
    public void notifyObservers(){
        for (Observer observer : observers)
        {
            observer.update();
        }
    }
}
